<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../org/angular.min.js"></script>
</head>

<body ng-app="app" ng-controller="ctrl">
    <div>
        <span>{{!all?'全选':'取消'}}</span> <input type="checkbox" ng-model="all" id="">
    </div>
    <table width="400" border="1">
        <tr ng-repeat="(k,v) in users">
            <td>
                <input ng-checked="all" type="checkbox" name="" id="">
            </td>
            <td>{{v.name}}</td>
            <td>{{v.age}}</td>
        </tr>
    </table>
    <script>
        var m = angular.module('app', []);
        m.controller('ctrl', ['$scope', function($scope) {
            $scope.users = [{
                    name: 'qq',
                    age: 16
                },
                {
                    name: 'baidu',
                    age: 15
                },
                {
                    name: 'taobao',
                    age: 13
                }
            ];
        }])
    </script>
</body>

</html>
